package com.company;


import com.company.person.Person;
import com.company.transport.Aircraft;
import com.company.transport.Bicycle;
import com.company.transport.Ship;

public class Main {

    public static void main(String[] args) {
        Person Tom = new Person();
        Tom.setId("201902999");
        Tom.setName("Tom");

        Aircraft aircraft1 = new Aircraft();
        aircraft1.setTransportid("7001");

        Bicycle bicycle1 = new Bicycle();
        bicycle1.setTransportid("1001");

        Ship ship1 = new Ship();
        ship1.setTransportid("4001");

        Tom.driveVehicle(aircraft1);
        System.out.print("\n");
        Tom.driveVehicle(bicycle1);
        System.out.print("\n");
        Tom.driveVehicle(ship1);
    }
}

